package com.jic.order.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.order.entity.OrderFreightTemplate;
import com.jic.order.manage.request.OrderFreightTemplateEditRequest;

import java.lang.Long;
import java.sql.ResultSet;
import java.util.List;


/**
 * 订单运费模板
 * @author :
 * @email :
 * @since : 2020-03-04 10:07:35
 * @version : v1.0.0
 */
public interface OrderFreightTemplateService {

    RestResult insert(OrderFreightTemplateEditRequest orderFreightTemplateEditRequest);

    RestResult delete(Long id);

    RestResult update(OrderFreightTemplateEditRequest orderFreightTemplateEditRequest);

    OrderFreightTemplate queryByPrimaryKey(Long id);

    List<OrderFreightTemplate> query(OrderFreightTemplate orderFreightTemplate);

    PageResult<OrderFreightTemplate> queryPage(OrderFreightTemplate orderFreightTemplate, Page pageQuery);

    //设置运费模板默认
    RestResult setDefault(Long id);

}